<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="Public/Admin/css/style.css" type="text/css" rel="stylesheet" />
<link href="Public/Admin/css/skin/fonts/font-awesome.min.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="Public/Admin/js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="Public/Admin/js/effect.js"></script>
<script type="text/javascript" src="Public/Admin/js/common.js"></script>
</head>

<body class="mainbody">
<!--导航栏-->
<div class="location">
	<a href="javascript:history.back(-1);" class="back"><i></i><span>返回上一页</span></a>
    <a href="{{U('Index/index')}}" class="home" target="_blank"><i></i><span>首页</span></a>
    <i class="arrow"></i>
    <span>类型管理</span>
    <i class="arrow"></i>
    <span>类型列表</span>
</div>
<!--/导航栏-->

<!--工具栏-->
<div id="floatHead" class="toolbar-wrap" style="height: 52px;">
  <div class="toolbar" style="width: 1693px;">
    <div class="box-wrap">
      <a class="menu-btn"></a>
      <div class="l-list">
        <ul class="icon-list">
          <li><a class="add" href="{{U('Type/add')}}"><i></i><span>新增</span></a></li>
        </ul>
      </div>
    </div>
  </div>
</div>
<!--/工具栏-->

<!--列表-->
<div class="table-container">
<form action="{{U('Tag/btnDelete')}}" method="post" id="formBox">
  <!--隔行变色是用js控制的-->
  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ltable">
    <tbody><tr class="odd_bg">
      <th align="center" width="12%">类型ID</th>
      <th align="left">类型名称</th>
      <th align="center" width="12%"></th>
      <th width="12%">操作</th>
    </tr>
  					
	{{foreach from="$data" value="$v"}}
    <tr>
      <td align="center">{{$v['tid']}}</td>
      <!-- 类型名称-->
      <td>{{$v['tname']}}</td>
      <!--排序-->      
      <td>
      </td>
      <!--操作-->
      <td align="center">
      	<a href="{{U('TypeAttr/index',array('tid'=>$v['tid']))}}">属性列表</a>
		<a href="{{U('edit',array('tid'=>$v['tid']))}}">编辑</a>
		<!--如果存在当前类型下的属性和分类  不删除-->
		<a href="javascript:if(confirm('确认删除吗?')) location.href='{{U('del',array('tid'=>$v['tid']))}}';">删除</a>
		
      </td>
    </tr>
    {{endforeach}} 
  </tbody></table>
  </form>
  
</div>
<!--/列表-->

<!--内容底部-->
<!--高20的空间-->
<div class="line20"></div>
<!--分页-->
<div class="pagination">
	<ul>
  		{{$page}}
	</ul>
</div>
<!--/内容底部-->
</body>
</html>
